@model ErrorViewModel

@{
    Layout = "_Layout";
    ViewData["Title"] = "错误";

    var error = Model?.Error?.Error;
    var errorDescription = Model?.Error?.ErrorDescription;
    var request_id = Model?.Error?.RequestId;
}

<div class="row justify-content-md-center">
    <div class="error-page">
        <div class="lead">
            <h1>错误</h1>
        </div>

        <div class="row">
            <div class="col-md-12">
                <div class="alert alert-danger">
                    抱歉，发生了一些小意外

                    @if (error != null)
                    {
                        <strong>
                            <em>
                                : @error
                            </em>
                        </strong>

                        if (errorDescription != null)
                        {
                            <div>@errorDescription</div>
                        }
                    }
                </div>

                @if (request_id != null)
                {
                    <div class="request-id">Request Id: @request_id</div>
                }
            </div>
        </div>
    </div>
</div>
